/*  ----------------------------------------------------------------------------
 *  Arello Mobile
 *  Fast 3d Engine
 *  ----------------------------------------------------------------------------
 * Except where otherwise noted, this work is licensed under
 * http://creativecommons.org/licenses/by/3.0
 */

#ifndef __LIB2D_GUI_VIEW_DIALOG_H__
#define __LIB2D_GUI_VIEW_DIALOG_H__

#include "Object.h"
#include "Button.h"
#include <lib2d/objects/Imagesimple.h>
#include <xml/Object.h>
#include <xml/Stream.h>


namespace liba
{
namespace lib2d
{
namespace gui
{
class Dialog;
namespace view
{

class Dialog :
	public Object,
	public xml::ObjectANSI
{
	view::Margined view;
	AutoPtr< objects::ImageSimple > image;
	gui::Dialog * obj;
public:
	Dialog( gui::Dialog * obj );

	const Margined::Margins & get_margins()const
	{
		return view.get_margins();
	}

	virtual bool on_attribute( xml::Provider * prov, const std::string & name, const std::string & value );
	virtual bool on_node( xml::Provider * prov, const std::string & name );

	virtual void render( hard::Renderer * rend );
};

} //namespace view
} //namespace gui
} //namespace lib2d
} //namespace liba

using namespace liba;

#endif //__LIB2D_GUI_VIEW_DIALOG_H__
